<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div id="app">
      <h3>模板替代</h3>
      <!-- <child inline-template>
        <div>child组件 - {{ count }}</div>
      </child> -->

      <child></child>
    </div>

    <script src="../Vue.js"></script>

    <script type="text/x-template" id="abc">
      <p>Hello hello hello</p>
    </script>

    <script>
      const Child = {
        template: "#abc",
      };
      new Vue({
        el: "#app",
        components: {
          Child,
        },
      });
    </script>
  </body>
</html>
